package com.kimehwa.studyboot.config;

import com.kimehwa.studyboot.interceptor.BizInterceptor;
import org.springframework.stereotype.Component;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author xiaodongguan
 * @description
 * @since 2021-09-12 10:50
 */
@Component
public class AdminWebConfig implements WebMvcConfigurer {
    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new BizInterceptor())
                .addPathPatterns("/**");
    }
}
